/**生成随机16进制颜色 */
export const getRandomColor = () => {
  return `#${Math.random().toString(16).slice(2, 8)}`;
};
/**生成uuid */
export const uuid = () => {
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (c) {
    const r = (Math.random() * 16) | 0,
      v = c == "x" ? r : (r & 0b0011) | 0b1000;
    return v.toString(16);
  });
};
